package com.mmall.service;

import com.mmall.common.ServiceResponse;
import com.mmall.pojo.User;

import javax.servlet.http.HttpSession;

/**
 * Created by xinxuchu on 2018/10/10.
 */
public interface IUserService {

     ServiceResponse<User> login(String username, String password);

     ServiceResponse<String> register(User user);

     ServiceResponse<String> checkValid (String str,String type);

     ServiceResponse selectQuestion(String username);

     ServiceResponse<String> checkAnswer(String username,String question, String answer);

     ServiceResponse<String> forgetRestPassword(String username, String passwordNew, String forgetToken);

     ServiceResponse<String> resetPassword(String passwordOld,String passwordNew,User user);

     ServiceResponse<User> updateInfomation(User user);

     ServiceResponse<User> getInformation(Integer userId);

     ServiceResponse checkAdminRole(User user);
}
